package com.test.example.controller.sensitive;

import com.xingluo.tools.sensitive.SensitiveUtils;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class SensitiveController {

    @Resource
    private SensitiveUtils sensitiveUtils;

    @GetMapping("/sensitive")
    public String sensitive() {
        return sensitiveUtils.filter("啊阿傻逼芬久啊fuck，fuck you，阿斯傻卧槽撒旦法");
    }

    @GetMapping("/sensitive2")
    public User sensitive2() {
        return new User(
                "邱老师",
                "abc123456",
                "17610103232",
                "503733546@qq.com",
                "啊阿傻逼芬久啊fuck，fuck you，阿斯傻卧槽撒旦法");
    }

}
